package com.heima.wemedia.feign;

import com.heima.model.article.pojos.ApArticle;
import com.heima.model.media.dtos.WmNewsStatisticsDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;
import java.util.Map;

@FeignClient(value = "leadnews-article")
public interface ArticleFeign {

    @PostMapping("/api/v1/article/findArticleCount")
    Integer findArticleCount(WmNewsStatisticsDto dto);

    @PostMapping("/api/v1/article/queryArticleIds")
    List<Long> queryArticleIds(WmNewsStatisticsDto dto);

    @PostMapping("/api/v1/article/findArticleByAuthorId")
    List<ApArticle> findArticleByAuthorId(WmNewsStatisticsDto dto);
}
